package cn.tedu.csmall.product.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@Accessors(chain = true)
public class AlbumInsertParam implements Serializable {
    @NotNull(message = "添加失败，相册名称不能为空！")
    @ApiModelProperty(value = "相册名称",required = true,example = "坤坤的相册")
    private String name;

    @NotNull(message = "添加失败，相册描述不能为空！")
    @ApiModelProperty(value = "相册描述",required = true,example = "你想要的都在这里")
    private String description;

    @NotNull(message = "添加失败，排序序号不能为空！")
    @Range(max=99,message = "排序序号必须在0到99之间")
    @ApiModelProperty(value = "排序序号",required = true,example = "66")
    private Integer sort;
}
